package com.dingup.provider.mapper;

import com.dingup.api.model.sys.SysWxOpenIdInfo;
import org.apache.ibatis.annotations.Param;

/**
 * Created by jun on 2018/1/17.
 */
public interface SysWxOpenIdInfoMapper {
    Boolean add(SysWxOpenIdInfo sysOpenIdInfo);

    Boolean existOpenId(String openId);

    SysWxOpenIdInfo getByOpenId(String openId);

    SysWxOpenIdInfo getByUnionIdAndAppid(@Param("unionId") String unionId, @Param("appid") String appid);

}
